{extend name="layout" /}
{block name="body"}    
  <div class="row">
    <div class="col-lg-12">
      <div class="card">
        <div class="card-body">
          
          <form action="{:url('add')}" method="post" name="add-form" class="row add-form">
            <div class="form-group col-md-12">
              <label for="title">模型名称</label>
              <div class="form-controls">
                <input type="text" class="form-control" id="title" name="title" value="" placeholder="请填写模型名称" />
                <small class="form-text text-muted">(必填，30个字符以内!)</small>
              </div>
            </div>
            <div class="form-group col-md-12">
              <label for="en_title">模型英文名</label>
              <div class="form-controls">
                <input type="text" class="form-control" id="en_title" name="en_title" value="" />
                <small class="form-text text-muted">(必填，模型英文名由小写字母、数字或下划线组成，不能以数字开头，30个字符以内!)</small>
              </div>
            </div>
            <div class="form-group col-md-12" id="form_group_table">
              <label for="table">附加表</label>
              <div class="form-controls">
                <input class="form-control" type="text" id="table" name="table" value="" placeholder="请输入附加表">
                <small class="form-text text-muted">创建后不可更改。由小写字母、数字或下划线组成，如果不填写默认为 <code>lyear_document_模型英文名</code>，如果需要自定义，请务必填写系统表前缀，<code>#@__</code>表示当前系统表前缀</small>
              </div>
            </div>
            <div class="form-group col-md-12">
              <label>模型类别</label>
              <div class="form-controls clearfix">
                <div class="custom-control custom-radio custom-control-inline">
                  <input type="radio" id="typeOne" name="type" class="custom-control-input" value="0">
                  <label class="custom-control-label" for="typeOne">系统模型</label>
                </div>
                <div class="custom-control custom-radio custom-control-inline">
                  <input type="radio" id="typeTwo" name="type" class="custom-control-input" value="1" checked>
                  <label class="custom-control-label" for="typeTwo">普通模型</label>
                </div>
                <div class="custom-control custom-radio custom-control-inline">
                  <input type="radio" id="typeThree" name="type" class="custom-control-input" value="2">
                  <label class="custom-control-label" for="typeThree">独立模型(不使用主表)</label>
                </div>
              </div>
            </div>
            <div class="form-group col-md-12">
              <label>状态</label>
              <div class="form-controls clearfix">
                <div class="custom-control custom-radio custom-control-inline">
                  <input type="radio" id="statusOne" name="status" class="custom-control-input" value="0">
                  <label class="custom-control-label" for="statusOne">禁用</label>
                </div>
                <div class="custom-control custom-radio custom-control-inline">
                  <input type="radio" id="statusTwo" name="status" class="custom-control-input" value="1" checked>
                  <label class="custom-control-label" for="statusTwo">启用</label>
                </div>
              </div>
            </div>
            <div class="form-group col-md-12">
              <button type="submit" class="btn btn-primary m-r-5 ajax-post" target-form="add-form">确 定</button>
              <button type="button" class="btn btn-default" onclick="javascript:history.back(-1);return false;">返 回</button>
            </div>
          </form>
 
        </div>
      </div>
    </div>
    
  </div>
{/block}